package com.ruoyi.oper.service.impl;

import com.ruoyi.oper.domain.OperItem;
import com.ruoyi.oper.domain.OperOrder;
import com.ruoyi.oper.mapper.OperOrderMapper;
import com.ruoyi.oper.service.IOperOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OperOrderServiceImpl implements IOperOrderService {
    @Autowired
    private OperOrderMapper operOrderMapper;
    @Override
    public int insertOperOrder(OperOrder operOrder) {
        return operOrderMapper.insertOperOrder(operOrder);
    }

    @Override
    public int insertOperItem(OperItem operItem) {
        return operOrderMapper.insertOperItem(operItem);
    }

    @Override
    public Integer getOrderId() {
        return operOrderMapper.getOrderId();
    }

    @Override
    public List<OperOrder> selectOperOrderList(OperOrder operOrder) {
        return operOrderMapper.selectOperOrderList(operOrder);
    }

    @Override
    public List<OperItem> selectOperItemList(OperItem operItem) {
        return operOrderMapper.selectOperItemList(operItem);
    }
}
